//
//  HuiyuanViewController.m
//  specialine
//
//  Created by 往返网络 on 17/3/16.
//  Copyright © 2017年 com. All rights reserved.
//

#import "HuiyuanViewController.h"  //历史记录

@interface HuiyuanViewController ()

@end

@implementation HuiyuanViewController

- (void)viewWillAppear:(BOOL)animated{


    [super viewWillAppear:animated];
    
    self.tabBarController.tabBar.hidden = YES;


}

- (void)viewWillDisappear:(BOOL)animated{


    [super viewWillDisappear:animated];
    
    self.tabBarController.tabBar.hidden = NO;

}
- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    [self setNavigationBar];
    
    [self createUI];
    
    // Do any additional setup after loading the view.
}
- (void)setNavigationBar{
    
    
    float fontsize = 17;
    
    fontsize = SCREEN_H < 667 ? 15 : 19;
    
    if (SCREEN_H == 667) {
        
        fontsize = 17;
    }
    
    self.navigationItem.title = @"消息";
    
    //设置导航条
    self.navigationController.navigationBar.barTintColor = COLORRGBA(7, 24, 57, 1);
    
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName :[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:fontsize]};
    
    
    UIButton * returnbtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 100.0/W_BASE*SCREEN_W, 88.0/H_BASE*SCREEN_H)];
    
    returnbtn.titleLabel.font = [UIFont fontWithName:@"iconfont" size:fontsize + 5];
    
    [returnbtn setTitle:@"\U0000e697" forState:UIControlStateNormal];
    
    [returnbtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    UIBarButtonItem * item1 = [[UIBarButtonItem alloc]initWithCustomView:returnbtn];
    
    self.navigationItem.leftBarButtonItem = item1;
    
    [returnbtn setTitleEdgeInsets:UIEdgeInsetsMake(0,0 , 0, 60.0/W_BASE*SCREEN_W)];
    
    [returnbtn addTarget:self action:@selector(enterClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
    //设置电池颜色等白色
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
    
    
    
}

- (void)createUI{


    self.view.backgroundColor = [UIColor whiteColor];
    


}

- (void)enterClick:(UIButton *)btn{


    [self.navigationController popViewControllerAnimated:YES];
    

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
